#include <my_head.h>

/* Usage:  */
int main(int argc, char *argv[]){                                  
    MYSQL *mysql =mysql_init(NULL);
    MYSQL *ret=mysql_real_connect(mysql,"localhost","root","2887","test",0,NULL,0);
    int a=1;
    char *p=(char*)calloc(1024,sizeof(char));
    sprintf(p,"select birth from student where id = %d;",a);
    mysql_query(mysql,p);
    MYSQL_RES* rows=mysql_store_result(mysql);
    MYSQL_ROW row=mysql_fetch_row(rows);
    printf("%s\n",row[0]);
    return 0;
}

